﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="微信网页版接入.aspx.cs" Inherits="Study.微信网页版接入" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script type="text/ecmascript">
        $(function () {
            $.ajax({
                type: "post",
                url: "Ajax/WeChat.ashx",
                dataType: "text",
                data: { opt: "getQRcode" },
                success: function (data) {
                    $("#qrcode").attr("src", data);

                    $.ajax({
                        type: "post",
                        url: "Ajax/WeChat.ashx",
                        dataType: "text",
                        data: { opt: "get_redirect_uri" },
                        success: function (data) {
                            
                        }
                    });
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <img id="qrcode" />
    </div>
    </form>
</body>
</html>
